{extend name="./common/base"}
{block name="content"}

<div class="panel admin-panel">
    <div class="panel-head" id="add"><strong><span class="icon-pencil-square-o"></span>增加内容</strong></div>
    <div class="body-content">
        <form method="post" class="form-x" action="">
            <div class="form-group">
                <div class="label">
                    <label>标题：</label>
                </div>
                <div class="field">
                    <input type="text" class="input w50" value="{$data['cate_name']}" name="cate_name" data-validate="required:请输入标题" />
                    <div class="tips"></div>
                </div>
            </div>

            <if condition="$iscid eq 1">
                <div class="form-group">
                    <div class="label">
                        <label>分类标题：</label>
                    </div>

                    <div class="field">
                        <select name="cate_pid" class="input w50">
                            <option value="">--添加分类--</option>
                            {foreach $oldData as $vo}
                            <option {if condition="$data['cate_id']==$vo['cate_id'] "} selected {/if} value="{$vo.cate_id}">{$vo.cate_name}</option>
                            {/foreach}
                        </select>
                        <div class="tips"></div>
                    </div>
                </div>

            </if>


            <div class="clear"></div>

            <div class="form-group">
                <div class="label">
                    <label>排序：</label>
                </div>
                <div class="field">
                    <input type="text" class="input w50" name="cate_sort" value="{$data['cate_sort']}"  data-validate="number:排序必须为数字" />
                    <div class="tips"></div>
                </div>
            </div>

            <div class="form-group">
                <div class="label">
                    <label></label>
                </div>
                <div class="field">
                    <button class="button bg-main icon-check-square-o" type="submit"> 提交</button>
                </div>
            </div>
        </form>
    </div>
</div>
{/block}